Add back fix for cross compile tests
authorBrian Koropoff <bkoropoff@gmail.com>
Fri, 5 Sep 2014 08:15:11 +0000 (01:15 -0700)
committerBrian Koropoff <bkoropoff@gmail.com>
Fri, 5 Sep 2014 08:15:11 +0000 (01:15 -0700)
This change was accidentally included in the reverted commit.

tests/test_cargo_cross_compile.rs

index 1dabc64ff0a04cdc31df26ccdaa7f814deef6062..13c1c6663a414b19b3753c3413c0e8925c176d3f 100644 (file)
@@ -163,7 +163,7 @@ test!(plugin_deps {
             }
 
             fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree])
-                          -> Box<MacResult> {
+                          -> Box<MacResult + 'static> {
                 MacExpr::new(quote_expr!(cx, 1i))
             }
         "#);
@@ -245,7 +245,7 @@ test!(plugin_to_the_max {
             }
 
             fn expand_bar(cx: &mut ExtCtxt, sp: Span, tts: &[TokenTree])
-                          -> Box<MacResult> {
+                          -> Box<MacResult + 'static> {
                 MacExpr::new(quote_expr!(cx, baz::baz()))
             }
         "#);